RemovePart
TheRemovePart
method removes the specified part from this draft.
void RemovePart (in ODPart part);
part
- A reference to the part object to be removed.
DISCUSSION
OpenDoc calls this method internally; parts, the document shell, and container applications do not call this method.When this method is called, the reference count of the specified part must be 1, and this draft's current permissions must provide write access.
If this method executes successfully, it marks this draft as dirty. The specified part is no longer a valid object, and this draft no longer contains a part object with the corresponding ID.
EXCEPTIONS
kODErrRefCountGreaterThanZero
- After the specified part was released, its reference count was greater than 0.
kODErrRefCountNotEqualOne
- The reference count of the specified part's storage unit is not 1.
SEE ALSO
TheODDraft::AcquirePart
method (page 156).
TheODDraft::CreatePart
method (page 169).
TheODPart
class (page 459).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help